package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Buy;
import cn.wolfcode.trip.base.query.BuyQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BuyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Buy record);

    Buy selectByPrimaryKey(Long id);

    List<Buy> selectAll();

    int updateByPrimaryKey(Buy record);

    List<Buy> query(BuyQueryObject qo);

    void setStatus(Long id);

    Buy getAddress(Long id);

    void insertAddress(Buy buy);

    void updateAddress(Buy buy);

    void saveShop(Buy buy);

    List<Integer> prices(int status);
}